Custom Functions In Spacy Pipeline